package com.yun.zf.admin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yun.zf.admin.mapper.ZfEsJobMapper;
import com.yun.zf.admin.service.ZfEsJobService;
import com.yun.zf.common.app.domain.ZfEsJob;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author cj
 * @since 2021-03-02
 */
@Service
public class ZfEsJobServiceImpl extends ServiceImpl<ZfEsJobMapper, ZfEsJob> implements ZfEsJobService {

    /**
     * 插入ES 推送数据
     * @param esJob
     * @return
     */
    @Override
    public int addEsJob(ZfEsJob esJob) {
        return  baseMapper.insert(esJob);
    }
}
